package com.ovidiojf.testeweb;

import org.hibernate.Session;

public class Conecta {
	public static void main(String[] args) {
		
		System.out.println("Vai pra web");
		
		
		Session session = null;
		
		try {
			session = HibernateUtil.getSession().openSession();
			System.out.println("Conectou !!");
		} finally {
			session.close();
			System.out.println("Fecou a conexão");
		}
	}
}
